#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "mydialog.h"
#include <QDialog>
#include <QtGui>
#include <QtCore>
#include "ngio.h"
#include "scene.h"
#include "customglwidget.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT


public:
    QTimer *timer;
    Ngio *ngios; // LabQuest device
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();


private slots:
    void on_actionNew_Window_triggered(); // create controls from menu
    void updateSlot(); // timer
    void on_actionClose_triggered(); // close program from menu
    void on_actionReload_Device_triggered(); // reloads the device


    void on_actionStart_triggered();

    void on_actionStop_triggered();

private:
    Ui::MainWindow *ui;
    MyDialog *mDialog;
    QGraphicsView *view;
    CScene *scene;
    CustomGLWidget *glscene;

protected:
    void paintEvent(QPaintEvent *e);

signals:
    void gameButtons(int);
};

#endif // MAINWINDOW_H
